/**
 * @Date 2025/1/9 8:57
 * @Created by 衡盛永
 */

package org.example.deploy.controller;

import org.example.deploy.dto.ResultDto;
import org.example.deploy.pojo.SysUser;
import org.example.deploy.service.SgLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class SgLoginController {

    @Autowired
    private SgLoginService sgLoginServcie;

    @PostMapping("login2")
    public ResultDto login(@RequestBody SysUser sysUser) {
        return sgLoginServcie.login(sysUser);
    }
}

